package com.woniuxy.demo.epai.service.impl;

import com.woniuxy.demo.epai.model.Classify;
import com.woniuxy.demo.epai.dao.ClassifyMapper;
import com.woniuxy.demo.epai.service.IClassifyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author epai
 * @since 2021-04-12
 */
@Service
public class ClassifyServiceImpl implements IClassifyService {
    @Autowired
    private ClassifyMapper mapper;

    @Override
    public Classify findIdByName(String typeName) {
        Classify classify = mapper.findIdByTypeName(typeName);
        return classify;
    }
}
